<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>编辑收货地址</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<link rel="stylesheet" href="css/mui.min.css">
		<link rel="stylesheet" type="text/css" href="fonts/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="css/mui.picker.css" />
		<link rel="stylesheet" type="text/css" href="css/mui.poppicker.css" />
		<link rel="stylesheet" type="text/css" href="css/common.css" />
		<link rel="stylesheet" type="text/css" href="css/cart.css" />
		<style>
			#topPopover{ position: fixed; top: 56px !important; right: 6px;}
			#topPopover .mui-popover-arrow{ left: auto; right: 6px;}
			.mui-popover{ height: 170px;}
			.mui-bar-tab~.mui-content{ padding-bottom: 66px;}

		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav bg_fff">
			<a class="mui-icon iconfont icon-fanhui mui-pull-left" href="javascript:history.back();void(0)"></a>
			<h1 class="mui-title">编辑收货地址</h1>
			<a id="deleteAddressId" class=" mui-icon mui-pull-right txt_right" href="javascript:;">删除</a>
		</header>
		<!--右上角弹出菜单-->
		<div id="topPopover" class="mui-popover" style="display: none;">
			<div class="mui-popover-arrow"></div>
			<div class="mui-scroll-wrapper">
				<div class="mui-scroll">
					<ul class="mui-table-view">
						<li class="mui-table-view-cell">
							<a href="index.html"><i class="iconfont icon-shouye"></i>首页</a>
						</li>
						<li class="mui-table-view-cell">
							<a href="category.html"><i class="iconfont icon-icon04"></i>分类搜索</a>
						</li>
						<li class="mui-table-view-cell">
							<a href="cart.html"><i class="iconfont icon-gouwuche"></i>购物车</a>
						</li>
						<li class="mui-table-view-cell">
							<a href="member_index.html"><i class="iconfont icon-wode"></i>会员中心</a>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<nav class="mui-bar mui-bar-tab" style="display: none;">
			<a class="mui-tab-item" href="index.html">
				<span class="mui-icon iconfont icon-shouye"></span>
				<span class="mui-tab-label">首页</span>
			</a>
			<a class="mui-tab-item" href="category.html">
				<span class="mui-icon iconfont icon-icon04"></span>
				<span class="mui-tab-label">分类</span>
			</a>
			<a class="mui-tab-item mui-active" href="cart.html">
				<span class="mui-icon iconfont icon-gouwuche"><span class="mui-badge">9</span></span>
				<span class="mui-tab-label">购物车</span>
			</a>
			<a class="mui-tab-item" href="member_index.html">
				<span class="mui-icon iconfont icon-wode"></span>
				<span class="mui-tab-label">我的</span>
			</a>
		</nav>
		<div class="mui-content editAds_box">
			<form action="" class="mui-input-group">
				<div class="mui-input-row">
					<label>收货人:</label>
					<input type="text" value="王大宝">
				</div>
				<div class="mui-input-row">
					<label>手机号码:</label>
					<input type="text" value="137****5553">
				</div>
				<div class="mui-input-row" id="showCityPicker3">
					<label>所在地区:</label>
					<div id="cityResult3" class="txt">
						山东省聊城市
					</div>
					<i class="iconfont icon-arrowright posi_r"></i>
				</div>
				<div class="mui-input-row">
					<label>详细地址:</label>
					<input type="text" value="东昌府区 香江二期东经一街5号">
				</div>
				<div class="mui-input-row">
					<label>设为默认地址</label>
					<div class="mui-switch mui-active">
						<div class="mui-switch-handle"></div>
					</div>
				</div>

			</form>

		</div>
		<div class="pay_btn" style="background:#f8f8f8;">
			<a href="javascript:;" class="add_btn">保存收货地址</a>
		</div>
		<!--删除弹窗-->
		<div class="popup-w" id="popup-w" style="display: none;"></div>
		<div class="confirm-w" id="confirm-w" style="display: none;">
			<div class="confirm">
				<div class="confirm-txt bdb-1px">
					是否删除该地址?
				</div>
				<div class="confirm-btn">
					<a href="javascript:;" class="btn2" id="cancelDeleteAddress">取消</a>
					<a href="javascript:void(0);" id="deleteButton" class="btn2 ctn02">确定</a>
				</div>
			</div>
		</div>

		<script src="js/jquery-1.10.1.min.js"></script>
		<script src="js/mui.min.js"></script>
		<script src="js/mui.picker.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/mui.poppicker.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/city.data-3.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" charset="utf-8">
			mui.init();

			mui('body:not(".mui-btn")').on('tap', 'a', function() {
				document.location.href = this.href;
			});

			//地址选择
			(function($, doc) {
				$.init();
				$.ready(function() {
					var cityPicker3 = new $.PopPicker({
						layer: 3
					});
					cityPicker3.setData(cityData3);
					var showCityPickerButton = doc.getElementById('showCityPicker3');
					var cityResult3 = doc.getElementById('cityResult3');
					showCityPickerButton.addEventListener('tap', function(event) {
						cityPicker3.show(function(items) {
							cityResult3.innerText = (items[0] || {}).text + " " + (items[1] || {}).text + " " + (items[2] || {}).text;
							//返回 false 可以阻止选择框的关闭
							//return false;
						});
					}, false);
				});
			})(mui, document);

			//删除
				$('#deleteAddressId').click(function() {
					$('#popup-w,#confirm-w').show();
				});
				$('#cancelDeleteAddress').click(function() {
					$('.popup-w,.confirm-w').hide();
				});
				$('#deleteButton').click(function() {
					$('.popup-w,.confirm-w').hide();
					$('.mui-input-group').show();
					$('.mui-input-group').find('input').val('');
					$('.mui-input-group').find('#cityResult3').html('');
					$('.mui-title').html('新建收货地址')
				});
		</script>
	</body>

</html>